<%@ page import="com.confidena.Game" %>



<div class="fieldcontain ${hasErrors(bean: gameInstance, field: 'circleSize', 'error')} required">
	<label for="circleSize">
		<g:message code="game.circleSize.label" default="Circle Size" />
		<span class="required-indicator">*</span>
	</label>
	<g:field name="circleSize" type="number" value="${gameInstance.circleSize}" required=""/>
</div>

<div class="fieldcontain ${hasErrors(bean: gameInstance, field: 'creationDate', 'error')} required">
	<label for="creationDate">
		<g:message code="game.creationDate.label" default="Creation Date" />
		<span class="required-indicator">*</span>
	</label>
	<g:datePicker name="creationDate" precision="day"  value="${gameInstance?.creationDate}"  />
</div>

<div class="fieldcontain ${hasErrors(bean: gameInstance, field: 'creditSize', 'error')} required">
	<label for="creditSize">
		<g:message code="game.creditSize.label" default="Credit Size" />
		<span class="required-indicator">*</span>
	</label>
	<g:field name="creditSize" type="number" value="${gameInstance.creditSize}" required=""/>
</div>

<div class="fieldcontain ${hasErrors(bean: gameInstance, field: 'description', 'error')} ">
	<label for="description">
		<g:message code="game.description.label" default="Description" />
		
	</label>
	<g:textField name="description" value="${gameInstance?.description}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: gameInstance, field: 'expirationTime', 'error')} required">
	<label for="expirationTime">
		<g:message code="game.expirationTime.label" default="Expiration Time" />
		<span class="required-indicator">*</span>
	</label>
	<g:field name="expirationTime" type="number" value="${gameInstance.expirationTime}" required=""/>
</div>

<div class="fieldcontain ${hasErrors(bean: gameInstance, field: 'listSize', 'error')} required">
	<label for="listSize">
		<g:message code="game.listSize.label" default="List Size" />
		<span class="required-indicator">*</span>
	</label>
	<g:field name="listSize" type="number" value="${gameInstance.listSize}" required=""/>
</div>

<div class="fieldcontain ${hasErrors(bean: gameInstance, field: 'name', 'error')} ">
	<label for="name">
		<g:message code="game.name.label" default="Name" />
		
	</label>
	<g:textField name="name" value="${gameInstance?.name}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: gameInstance, field: 'suscriptos', 'error')} ">
	<label for="suscriptos">
		<g:message code="game.suscriptos.label" default="Suscriptos" />
		
	</label>
	<g:select name="suscriptos" from="${com.confidena.security.Person.list()}" multiple="multiple" optionKey="id" size="5" value="${gameInstance?.suscriptos*.id}" class="many-to-many"/>
</div>

